package demo.fori;

import lombok.extern.slf4j.Slf4j;

/**
 * continue跳出测试
 *
 * @author sun.ye
 * @since 2020-07-21 17:26
 */
@Slf4j
public class ForContinue {

    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            if(i == 3){
                continue;
            }
            for (int j = 0; j < 5; j++) {
                if (j == 3){
                    continue;
                }
                log.info("i = " + i + " j = " + j);
            }
        }
    }
}